package com.handyshop.mall.dubbo.user.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.handyshop.mall.dubbo.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel(value = "部门角色表")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_role")
public class SysRole extends BaseEntity {
    /**
     * 角色名称
     */
    @TableField(value = "`name`")
    @ApiModelProperty(value = "角色名称")
    private String name;

    /**
     * 角色标识
     */
    @TableField(value = "code")
    @ApiModelProperty(value = "角色标识")
    private String code;

    /**
     * 系统id
     */
    @TableField(value = "system_id")
    @ApiModelProperty(value = "系统id")
    private Long systemId;

    /**
     * 组织id
     */
    @TableField(value = "org_id")
    @ApiModelProperty(value = "组织id")
    private Long orgId;

    /**
     * 角色备注
     */
    @TableField(value = "note")
    @ApiModelProperty(value = "角色备注")
    private String note;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_CODE = "code";

    public static final String COL_SYSTEM_ID = "system_id";

    public static final String COL_ORG_ID = "org_id";

    public static final String COL_NOTE = "note";

    public static final String COL_DELETE_FLAG = "delete_flag";

    public static final String COL_CREATOR_ID = "creator_id";

    public static final String COL_CREATOR = "creator";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_MODIFY_TIME = "modify_time";
}